<?php

class Soul_Annotation_Attribute {
    
    private $_name = '';
    private $_function = NULL;
    
    public function __construct($name = '', $function = NULL) {
        $this->_name = $name;
        $this->_function = $function;
    }
    
    public function getName(){
        return $this->_name;
    }
    
    public function setName($value){
        $this->_name = $value;
    }
    
    public function getFunction(){
        return $this->_function;
    }
    
    public function setFunction($value){
        $this->_function = $value;
    }    
    
    public function execute($args = NULL){
        call_user_func_array($this->getFunction(), $args);
    }
}
